package com.qfjy.homework.wangmin;

public class IceCreamDemo {

    public static void main(String[] args) {

        /**
         * 给出参数，通过工厂类进行创建对应口味的冰淇凌
         */
        IceCream iceCream1 = IceCreamFactory.creamIceCream("苹果味");
        iceCream1.taste();

        IceCream iceCream2 = IceCreamFactory.creamIceCream("香蕉味");
        iceCream2.taste();

        IceCream iceCream3 = IceCreamFactory.creamIceCream("橘子味");
        iceCream3.taste();
    }

}
